<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:fs="http://www.wueasy.com">
<head>
	<head th:include="layout :: header" th:remove="tag"/>
	<div th:include="layout :: frame" th:remove="tag"/>
</head>
<body>

<div class="layui-fluid">
  <div class="layui-row layui-col-space1">
  	 <div class="layui-col-md12">
  	 	<div class="layui-card">
  	 	<div class="layui-card-body">
  	  		<div class="layui-form-query">
				<form class="layui-form" id="query_form">
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-mid">登录名：</label>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" name="loginNo" autocomplete="off" class="layui-input"/>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-mid">姓名：</label>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" name="username" autocomplete="off" class="layui-input"/>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-mid">手机号码：</label>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" name="phone" autocomplete="off" class="layui-input"/>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-mid">邮箱：</label>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" name="email" autocomplete="off" class="layui-input"/>
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-mid">用户状态：</label>
							<div class="layui-input-inline" style="width: 100px;">
								<select name="state">
								  <option value="">--请选择--</option>
								  <option value="1">正常</option>
								  <option value="0">未激活</option>
								  <option value="2">锁定</option>
								  <option value="3">注销</option>
								</select>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-mid">登录时间：</label>
							<div class="layui-input-inline" style="">
								<input type="text" id="lastDate" name="lastDate" autocomplete="off" class="layui-input fsDate" dateRange="1" placeholder=" - "/>
							</div>
						</div>
						<div class="layui-inline">
							<div class="layui-input-inline">
								<button class="layui-btn" type="button" function="query"><i class="layui-icon layui-icon-search"></i>查询</button>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div id="table_buttion_div">
		    	<button class="layui-btn" function="top" fs:authorize="" th:topUrl="@{/frame/system-user-account-add}" topUrl="/frame/system-user-account-add" topWidth="700px" topHeight="435px" isMaxWindow="" topTitle="新增用户">
				  <i class="layui-icon layui-icon-add-1"></i>新增
				</button>
				<button class="layui-btn" function="refresh">
				  <i class="layui-icon layui-icon-refresh-1"></i>刷新
				</button>
	    	</div>
	    	<table id="fsDatagrid" class="fsDatagrid" lay-filter="fsDatagrid" funcNo="S1003" isPage="1" height="full-210" defaultForm="query_form"></table>
			<div class="fsDatagridCols">
				<p type="numbers" title="#"/>
				<p checkbox="true"/>
			    <p field="userId" title="ID" width="100"/>
			    <p field="loginNo" title="登录名" width="100" sort="true"/>
			    <p field="username" title="姓名" width="100" sort="true"/>
			    <p field="phone" title="手机号码" width="120" sort="true"/>
			    <p field="email" title="邮箱" width="120" sort="true"/>
			    <p field="state" title="状态" width="100" dict="userState"/>
			    <p field="loginCount" title="登录次数" width="100"/>
			    <p field="lastTime" title="最后登录时间" width="200" formatType="datetime"/>
			    <p field="lastIp" title="最后登录IP" width="160"/>
			    <p field="createdTime" title="创建时间" width="160" formatType="datetime"/>
			    <p fixed="right" align="center" toolbar="#barDemo" title="操作" width="300"/>
			</div>
			<script type="text/html" id="barDemo">
				 	<a id="edit" class="layui-btn layui-btn-xs" lay-event="top" fs:authorize="" th:topUrl="@{/frame/system-user-account-edit}" topUrl="/frame/system-user-account-edit" topWidth="700px" topHeight="330px" topTitle="编辑用户" inputs="userId:"><i class="layui-icon layui-icon-edit"></i>编辑</a>
				 {{#  if(d.isSystem != '1'){ }}
					 {{#  if(d.state != '1'){ }}
					 	<a id="jh" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="submit" fs:authorize="" isVerifyPwd="1" funcNo="S1007"  isConfirm="1" confirmMsg="是否确定激活当前用户？" inputs="userId:"><i class="fa fa-unlock-alt" aria-hidden="true"></i>  激活</a>
						{{#  if(d.state == '2'){ }}
							<a id="zx" class="layui-btn layui-btn-danger layui-btn-xs" fs:authorize="" lay-event="submit" funcNo="S1008" isConfirm="1" confirmMsg="是否确定注销当前用户？" inputs="userId:"><i class="fa fa-ban" aria-hidden="true"></i>  注销</a>
						{{#  } }}
 				 	 {{#  } else if(d.state == '1') { }}
						 <a id="sd" class="layui-btn layui-bg-orange layui-btn-xs" fs:authorize="" lay-event="submit" funcNo="S1009" isConfirm="1" confirmMsg="是否确定锁定当前用户？" inputs="userId:"><i class="fa fa-lock" aria-hidden="true"></i>  锁定</a>
						 <a id="zx" class="layui-btn layui-btn-danger layui-btn-xs" fs:authorize="" lay-event="submit" funcNo="S1008" isConfirm="1" confirmMsg="是否确定注销当前用户？" inputs="userId:"><i class="fa fa-ban" aria-hidden="true"></i>  注销</a>
 					 {{#  } }}
					 <a id="czmm" class="layui-btn layui-btn-xs" fs:authorize="" lay-event="top" th:topUrl="@{/frame/system-user-account-resetPwd}" topUrl="/frame/system-user-account-resetPwd" topWidth="720px" topHeight="315px" topTitle="重置用户密码" inputs="userId:,username:,loginNo:"><i class="layui-icon layui-icon-edit"></i>重置密码</a>
				 {{#  } }}
				</script>
		</div>
	</div>
	</div>
  </div>
</div>
</body>
</html>